cmake_minimum_required(VERSION 3.20)

set(PLATFORM ARM)

if (${PLATFORM} STREQUAL "ARM")
    include(toolchain/arm-linux-gnueabihf.cmake)
endif()

project(Embedded)

set(C_STANDARD C11)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

add_subdirectory(src)